package com.snbc.string;

public class MyStringBuffer implements IStringBuffer {
    String str;

    public MyStringBuffer(String str) {
        this.str = str;
    }

    public MyStringBuffer() {

    }

    @Override
    public String toString() {
        return "MyStringBuffer{" +
                "str='" + str + '\'' +
                '}';
    }

    @Override
    public StringBuffer append(String str) {
        StringBuffer sb = new StringBuffer(str);
        return sb.append(str);
    }

    @Override
    public void append(char c) {
        char ch = c;
        String s = str.toString();
        append(s);
    }

    @Override
    public void insert(int pos, char b) {

    }

    @Override
    public void insert(int pos, String b) {

    }

    @Override
    public void delete(int start) {

    }

    @Override
    public void delete(int start, int end) {

    }

    @Override
    public void reverse() {

    }

    @Override
    public int length() {
        return 0;
    }
}
